package com.example.cart.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

import lombok.Data;

/**
 * 购物车商品项
 */
@Entity(tableName = "cart")
@Data
public class Cart {

    @PrimaryKey(autoGenerate = true)
    private Integer id;

    /**
     * 商品ID
     */
    @ColumnInfo(name = "product_id")
    private String productId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 金额
     */
    private Double amount;
}
